/*
 * 文件名：BaseProductStockSearchController.java
 * 版权：Copyright 2018-2019 Love. Co. Ltd. All Rights Reserved.
 * 描述：Anthony.CHONG
 * 修改人：Anthony.CHONG
 * 修改时间：2020年04月26日
 * 系统名称：xiaole
 */
package com.sinbader.xiaole.admin.controller;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.roses.core.base.controller.BaseController;
import com.sinbader.xiaole.common.model.params.BaseProductStockSearchParam;
import com.sinbader.xiaole.common.service.impl.BaseProductStockSearchServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <商品库存信息基础查询响应控制器>
 * <功能详细描述>
 *
 * @author CHONG
 * @version 1.0 2020年04月26日
 * @see BaseProductStockSearchController
 * @since 1.0
 */
@Controller
@RequestMapping("/baseProductStockSearch")
public class BaseProductStockSearchController extends BaseController {

    @Autowired
    private BaseProductStockSearchServiceImpl baseProductStockSearchServiceImpl;

    /**
     * 查询当期用户所在门店的 商品库存信息
     *
     * @param productParam
     * @return
     */
    @ResponseBody
    @RequestMapping("/listProductStockInfos")
    public LayuiPageInfo listProductStockInfos(BaseProductStockSearchParam productParam) {
        return this.baseProductStockSearchServiceImpl.selectProductStockInfos(productParam);
    }
}